package com.itheima.tlias08_14.entity;

import com.alibaba.druid.sql.ast.statement.SQLNotNullConstraint;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
//@JsonInclude(JsonInclude.Include.NON_NULL)
public class Emp {
    private int id; // ID
    private String username; // 用户名
    private String password; // 密码
    private String name; // 姓名
    private Integer gender ; // 性别, 说明: 1 男, 2 女
    private Integer job; // 职位, 说明: 1 班主任,2 讲师, 3 学工主管, 4 教研主管, 5 咨询师
    private int salary; // 薪资
    private String image; // 头像
    @JsonFormat(pattern = "yyyy年MM月dd")
    private LocalDate entryDate; // 入职时间
    private Integer deptId; // 部门ID
    @JsonFormat(pattern = "yyyy年MM月dd HH-mm-ss")
    private LocalDateTime createTime; // 创建时间
    @JsonFormat(pattern = "yyyy年MM月dd HH-mm-ss")
    private LocalDateTime updateTime; // 修改时间
    @JsonIgnore
    private String phone; // 手机号
}
